<template>
    <div>
        <van-nav-bar title="标题" @click-left="onClickLeft" @click-right="onClickRight" left-text="返回" left-arrow>
            <template #right>

                <van-icon name="share-o" />
            </template>
        </van-nav-bar>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const router = useRouter()
// 点击左侧箭头返回上一页
const onClickLeft = () => {
    // 将保存的本地图片链接清除
    localStorage.removeItem('bangdantupian')
    // 路由跳转
    router.push('/bottomlist')
}
const onClickRight = () => {
    alert('分享也还没配置')
}
</script>

<style lang="scss" scoped>

</style>